  <?php get_header(); ?>
  
  
  <?php if (have_posts()) : ?>
 <?php if (is_month()) {query_posts('year='.get_the_time('Y').'&monthnum='.get_the_time('m').'&author_name=admin&cat=1&posts_per_page='.get_option('posts_per_page')); ?>

 <?php } ?>
 <?php while (have_posts()) : the_post(); ?>
  <div class="scroll-thumb"><a href="<?php the_permalink(); ?>"><img src="<?php echo catch_that_image() ?>"></a></div>
 <?php endwhile; ?>
<?php endif; ?>


<div id="scroller-container">
<div id="galleria"><h3>Offerte in <strong>Evidenza</strong></h3></div>
    <div id="scroller">
    
    <ul>
    <li>
    <?php $custom_query = new WP_Query('posts_per_page=4'); 
while($custom_query->have_posts()) : $custom_query->the_post(); ?>


      <div class="scroll-film">
                            

                            <div class="scroll-thumb"><a href="<?php the_permalink(); ?>"><img src="<?php echo catch_that_image() ?>"></a></div>
                            
                            <div class="scroll-film-toolbar clearfix">
                                
                                

 
                            </div>

                        </div>


<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
</li>
<li>

    <?php $custom_query = new WP_Query('posts_per_page=4&offset=4'); 
while($custom_query->have_posts()) : $custom_query->the_post(); ?>


      <div class="scroll-film">
                            

                            <div class="scroll-thumb"><a href="<?php the_permalink(); ?>"><img src="<?php echo catch_that_image() ?>"></a></div>
                            
                            <div class="scroll-film-toolbar clearfix">
                                
                                

 
                            </div>

                        </div>


<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
</li>

<li>
    <?php $custom_query = new WP_Query('posts_per_page=4&offset=8'); 
while($custom_query->have_posts()) : $custom_query->the_post(); ?>


      <div class="scroll-film">
                            

                            <div class="scroll-thumb"><a href="<?php the_permalink(); ?>"><img src="<?php echo catch_that_image() ?>"></a></div>
                            
                            <div class="scroll-film-toolbar clearfix">
                                
                                

 
                            </div>

                        </div>


<?php endwhile; ?>
<?php wp_reset_postdata(); ?>


</li>
</ul>

      
    </div>
</div>




  

<?php get_footer(); ?>